package com.ruoyi.app.service.impl;

import com.ruoyi.app.domain.Doctor;
import com.ruoyi.app.domain.DoctorSchedule;
import com.ruoyi.app.mapper.DoctorMapper;
import com.ruoyi.app.mapper.DoctorScheduleMapper;
import com.ruoyi.app.service.DoctorScheduleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;
import java.util.List;

/**
* @author 75460
* @description 针对表【doctor_schedule(医生排班表)】的数据库操作Service实现
* @createDate 2025-05-16 14:32:52
*/
@Service
public class DoctorScheduleServiceImpl implements DoctorScheduleService{
    @Autowired
    private DoctorScheduleMapper doctorScheduleMapper;
    @Override
    public List<DoctorSchedule> getDoctorSchedule(Integer departmentId,String scheduleDate) {
        return doctorScheduleMapper.getDoctorSchedule(departmentId,scheduleDate);
    }

    @Override
    public DoctorSchedule selectDoctorById(Long doctorId, Long scheduleId) {
        return doctorScheduleMapper.selectDoctorById(doctorId,scheduleId);
    }

    @Override
    public void updateSchedule(DoctorSchedule doctorSchedule) {
        doctorScheduleMapper.updateSchedule(doctorSchedule);
    }

    @Override
    public DoctorSchedule getSelectDoctorSchedule(Long scheduleId) {
        return doctorScheduleMapper.getSelectDoctorSchedule(scheduleId);
    }
}




